﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class leftmenu : AdminBasePage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            BindLeftTree();
        }
    }

    private void BindLeftTree()
    {
        XmlDataSource1.DataFile = "/admin/XML/Menu.xml";
        leftTree.DataSource = XmlDataSource1;
        leftTree.DataBind();
    }
}